import requests


class TestCase():
    def test_register(self):
        self.login_url="http://localhost:8000/login/"
        data={"username":"admin",
              "pwd":"123456",
              "remembered":"on"}

        re=requests.post(url=self.login_url,data=data)
        assert re.text=="请输入8-20个字符的密码"
